//    Copyright (C) Kherty.  All rights reserved.
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Media;

namespace OpenLS.Spreadsheet.UI
{
    class TransformContext: IDisposable
    {
        public TransformContext(DrawingContext drawingContext, Transform transform)
        {
            _drawingContext = drawingContext;
            _drawingContext.PushTransform(transform);
        }

        private readonly DrawingContext _drawingContext;

        #region IDisposable Members

        public void Dispose()
        {
            _drawingContext.Pop();
        }

        #endregion
    }
}
